package com.chen.order;

import com.chen.service.annotation.EnableUserTokenFeignInterceptor;
import com.chen.service.annotation.EnableUserWebConfig;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author cgj
 * @date 4/26/25 10:13 AM
 */
@SpringBootApplication
@EnableFeignClients(basePackages = {
        "com.chen.feign.cart",
        "com.chen.feign.user",
        "com.chen.feign.product"
})
@EnableUserWebConfig // 存储用户信息
@EnableUserTokenFeignInterceptor //处理feign丢失头信息的
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class);
    }
}
